﻿using System.Windows.Forms;

namespace TeamReview.UI
{
    internal class FieldColumnDescriptor
    {
        public FieldColumnDescriptor(string field, string caption, int width)
        {
            Field = field;
            Caption = caption;
            Width = width;
            SortMode = DataGridViewColumnSortMode.Automatic;
        }

        public FieldColumnDescriptor(string field, string caption, int width, DataGridViewColumnSortMode sort)
        {
            Field = field;
            Caption = caption;
            Width = width;
            SortMode = sort;
        }

        public string Field { get; set; }
        public string Caption { get; set; }
        public int Width { get; set; }
        public DataGridViewColumnSortMode SortMode { get; set; }
    }
}
